
// 类组件
import { Component } from 'react'

export default class child1 extends Component {

    render() {
        return (
            <div>
                <p>child2{this.props.msg}</p>
            </div>
        )
    }
}